<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!-- 引入标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>内容详情</title>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
            font-size: 14px;
            line-height: 1.42857143;
            background-color: #d5fffd;
        }
        .navcolor{
            background-color: #c5eaff;
        }
        [class*="col-"] {
            padding-top: 15px;
            padding-bottom: 15px;
            background-color: #eee;
            background-color: rgba(86,61,124,.15);
            border: 1px solid #ddd;
            border: 1px solid rgba(86,61,124,.2);
        }

    </style>
</head>
<body>
<br>
<br>
<br>
<nav class="navbar navcolor navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="main.html">VoteSys投票系统</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="messagelist.html">主页</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <br>
                <li>用户：？？？您好</li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>
<div class="container">
    <h1>
        内容详情
    </h1>
    <div class="row">
        <div class="col-md-6">
            <div class="table table-striped">
                <form action="<s:property value="#request.returnAction"/>" id="contentform" enctype="multipart/form-data" method="post">
	                    <table class="table table-striped">
	                    <input type="hidden" id="contentid" name="contentid" value="<s:property value="#request.VoteContent.contentId"/>">
	                    <thead>
	                    <tr>
	                        <th>内容名称</th>
	                    </tr>
	                    </thead>
	                    <tbody>
	                        <tr>
	                            <td><input type="text" id="contentname" name="contentname" value="<s:property value="#request.VoteContent.contentName"/>"></td>
	                        </tr>
	                    </tbody>
	                    <thead>
	                    <tr>
	                        <th>所属主题</th>
	                    </tr>
	                    </thead>
	                    <tbody>
	                    <tr>
	                        <th><input type="number" id="topicid" name="topicid" value="<s:property value="#request.VoteContent.topicId"/>" readonly="true"></th>
	                    </tr>
	                    </tbody>
	                    <thead>
	                        <th>内容概要</th>
	                    </thead>
	                    <tbody>
	                        <td><textarea class="form-control" rows="3" id="contentabstract" name="contentabstract"><s:property value="#request.VoteContent.contentAbstract"/></textarea></td>
	                    </tbody>
	                    <thead>
	                        <tr>
	                            <th>内容详情</th>
	                        </tr>
	                    </thead>
	                    <tbody>
	                        <tr>
	                            <td><textarea class="form-control" rows="5" id="contentdetail" name="contentdetail" ><s:property value="#request.VoteContent.contentDetail"/></textarea></td>
	                        </tr>
	                    </tbody>
	                    <thead>
	                        <tr>
	                            <th>图片路径</th>
	                        </tr>
	                    </thead>
	                    <tbody>
	                        <tr>
	                            <td><input type="file" id="pic" name="pic" value="<s:property value="#request.VoteContent.pic"/></textarea>"> </td>
	                        </tr>
	                        <tr>
	                            <td>
	                                <input type="submit" value="确定"><button class="btn btn-info">确认提交</button>
	                            </td>
	
	                        </tr>
	                    </tbody>  
           		</table>
            </form>
        </div>
        <br>
    </div>
    <br>

</div> <!-- /container -->
<script src="bootstrap/jquery-1.9.1.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/less/navbar.less"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
</body>
